<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备编码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-equipment_code" class="form-control" name="row[equipment_code]" type="text" value="{$row.equipment_code|default=''}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-equipment_name" class="form-control" name="row[equipment_name]" type="text" value="{$row.equipment_name|default=''}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-equipment_type" class="form-control" name="row[equipment_type]" type="text" value="{$row.equipment_type|default=''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('采购价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-purchase_price" class="form-control" name="row[purchase_price]" type="number" step="0.01" value="{$row.purchase_price|default='0.00'}" data-rule="required;number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('年折旧率')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-depreciation_rate" class="form-control" name="row[depreciation_rate]" type="number" step="0.01" value="{$row.depreciation_rate|default='10.00'}" data-rule="required;number">
            <span class="help-block">单位：%</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('小时成本')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hourly_cost" class="form-control" name="row[hourly_cost]" type="number" step="0.01" value="{$row.hourly_cost|default='0.00'}" data-rule="required;number">
            <span class="help-block">设备每小时运行成本</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-status" class="form-control selectpicker" name="row[status]" data-rule="required">
                <option value="1" {if $row.status == 1}selected{/if}>正常</option>
                <option value="0" {if $row.status == 0}selected{/if}>停用</option>
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
